//
//  ReNewMusicTableViewCell.m
//  MusicPlayer
//
//  Created by dlios on 15-5-23.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ReNewMusicTableViewCell.h"

@implementation ReNewMusicTableViewCell
- (void)dealloc
{
    [self.songName release];
    [self.singer release];
    [self.collection release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}

#pragma mark - 创建推荐界面最新音乐的自定义cell
- (void)createCell
{
    self.songName = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width / 375 * 20, 0, self.frame.size.width / 375 * 300, self.frame.size.width / 375 * 40)];
    self.songName.font = [UIFont systemFontOfSize:self.frame.size.width / 375 * 20];
    [self addSubview:self.songName];
    
    self.singer = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width / 375 * 28, self.frame.size.width / 375 * 40, self.frame.size.width / 375 * 200, self.frame.size.width / 375 * 20)];
    self.singer.font = [UIFont systemFontOfSize:self.frame.size.width / 375 * 15];
//    self.singer.alpha = 0.4;
    [self addSubview:self.singer];
    
    self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
